package com.alibaba.iswoak.realm;

import com.alibaba.iswoak.service.MenusService;
import com.alibaba.iswoak.service.RoleService;
import com.alibaba.iswoak.service.UserService;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.subject.PrincipalCollection;

public class MyRealm extends AuthorizingRealm {
    private UserService userService;
    public void setUserService(UserService userService){
        this.userService=userService;
    }
    private RoleService roleService;

    public void setRoleService(RoleService roleService) {
        this.roleService = roleService;
    }
    private MenusService menusService;

    public void setMenusService(MenusService menusService) {
        this.menusService = menusService;
    }





    protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) {
        return null;
    }

    protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
        return null;
    }
}
